const Koa = require('koa');
const bodyParser = require('koa-bodyparser');
const users=require('./src/routes/register')
const ai=require('./src/routes/ai')
const travel=require('./src/routes/travel')
const order=require('./src/routes/order')
const orderchildren=require('./src/routes/orderchildren')
const passenger=require('./src/routes/passenger')
const querylist=require('./src/routes/querylist')

const tnlist=require('./src/routes/tnlist')

const cors = require('@koa/cors');
const app = new Koa();



app.use(bodyParser());
app.use(cors());
app.use(users.routes())
app.use(ai.routes())
app.use(travel.routes())
app.use(order.routes())
app.use(orderchildren.routes())
app.use(passenger.routes())
app.use(querylist.routes())

app.use(tnlist.routes())



app.listen(8080,()=>{
  console.log('服务器已启动,运行在http://localhost:8080')
}); 
